% REPLACE WITH YOUR FUNCTION FROM PREVIOUS ASSIGNMENTS!